import request from '@/utils/request'

// 查询环保维护列表
export function listOpmEnvFacilityRecord(query) {
  return request({
    url: '/environment/opmEnvFacilityRecord/list',
    method: 'get',
    params: query
  })
}

// 查询环保维护详细
export function getOpmEnvFacilityRecord(id) {
  return request({
    url: '/environment/opmEnvFacilityRecord/' + id,
    method: 'get'
  })
}

// 新增环保维护
export function addOpmEnvFacilityRecord(data) {
  return request({
    url: '/environment/opmEnvFacilityRecord',
    method: 'post',
    data: data
  })
}

// 修改环保维护
export function updateOpmEnvFacilityRecord(data) {
  return request({
    url: '/environment/opmEnvFacilityRecord',
    method: 'put',
    data: data
  })
}

// 删除环保维护
export function delOpmEnvFacilityRecord(id) {
  return request({
    url: '/environment/opmEnvFacilityRecord/' + id,
    method: 'delete'
  })
}
